function getPhone(access_token, user_id) {
    var xhr = new XMLHttpRequest();//新建一个元素对象
    xhr.onreadystatechange = function () {
        if (xhr.readyState == 4 && xhr.status == 200) {
            var result = JSON.parse(xhr.responseText)
            if (result.status == 1) {
                console.log(result);
                document.getElementById('phone').value = result.resultBody
                location.href = "/static/logins.html"
            } else {
                alert(result.errorMsg);
            }
        }
    }
    var url = "/app_get_phone"
    xhr.open("POST", url, true);
    xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    //这里是发起请求
    xhr.send("access_token=" + access_token + "&user_id=" + user_id);
}